package com.beauty.dressing.module.market.presenter.contract;

import com.beauty.dressing.common.bean.SalesOrderResp;
import com.beauty.dressing.common.bean.ShopCart;

import java.util.List;

/**
 * Created by aaa on 2018/5/18.
 */

public interface ShopCartContract {
    /**
     * 界面回调逻辑
     */
    interface ViewControl{
        void onShopcartList(boolean isSuccess, int code, String message, List<ShopCart> list, int currPage); //
        void onDeleteShopcart(boolean isSuccess, int code, String message, long leaseId); //
        void onCreateOrder(boolean isSuccess, int code, String message, SalesOrderResp data); //
    }

    /**
     * 界面调用请求的逻辑
     */
    interface Presenter {
        void getShopcartList(int page);
        void deleteShopcart(long cartId);
        void createOrder(long lease_id,int number);
    }
}
